﻿package com.dykj.platform.iadapter.tags;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ComponentTagSupport;

import com.opensymphony.xwork2.util.ValueStack;

public class ButtonTags extends ComponentTagSupport{
	private String name;
	private String method;
	private String value;
	private String check;

	public String getCheck() {
		return check;
	}

	public void setCheck(String check) {
		this.check = check;
	}

	@Override
	public Component getBean(ValueStack arg0, HttpServletRequest arg1, HttpServletResponse arg2) {
		return new Button(arg0);
	}
	
	//	获得参数  
    protected void populateParams() {  
        super.populateParams();  
        Button input = (Button)component;  
        input.setName(name);
        input.setMethod(method);
        input.setValue(value);
        input.setCheck(check);
    }  
    
	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}
